<?php // List All Of The Product Brochures On The Site ; ?>
<h2 class="pagesubsectionheader">Product Brochures</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'Brochure');
	$doclistbrochure = new WP_Query($args);

	if($doclistbrochure->have_posts()) : 
		while($doclistbrochure->have_posts()) : 
			$doclistbrochure->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">Brochure: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>

<?php // List All Of The Product Datasheets On The Site ; ?>
<h2 class="pagesubsectionheader">Product Datasheets</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'Datasheet');
	$doclistdatasheet = new WP_Query($args);

	if($doclistdatasheet->have_posts()) : 
		while($doclistdatasheet->have_posts()) : 
			$doclistdatasheet->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">Datasheet: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>

<?php // List All Of The Product Installation Manuals On The Site ; ?>
<h2 class="pagesubsectionheader">Product Installation Manuals</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'Installation Manual');
	$doclistinstall = new WP_Query($args);

	if($doclistinstall->have_posts()) : 
		while($doclistinstall->have_posts()) : 
			$doclistinstall->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">Install Manual: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>

<?php // List All Of The Product Certifications On The Site ; ?>
<h2 class="pagesubsectionheader">Product Certifications</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'Certification');
	$doclistcertification = new WP_Query($args);

	if($doclistcertification->have_posts()) : 
		while($doclistcertification->have_posts()) : 
			$doclistcertification->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">Certification: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>

<?php // List All Of The Product SRCC OG-100 Certifications On The Site ; ?>
<h2 class="pagesubsectionheader">Product SRCC OG-100 Certification</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'SRCC OG-100 Cerification');
	$doclistsrccog100 = new WP_Query($args);

	if($doclistsrccog100->have_posts()) : 
		while($doclistsrccog100->have_posts()) : 
			$doclistsrccog100->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">SRCC OG-100: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>

<?php // List All Of The Product SRCC OG-300 Certifications On The Site ; ?>
<h2 class="pagesubsectionheader">Product SRCC OG-300 Certifications</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'SRCC OG-300 Certification');
	$doclistsrccog300 = new WP_Query($args);

	if($doclistsrccog300->have_posts()) : 
		while($doclistsrccog300->have_posts()) : 
			$doclistsrccog300->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">SRCC OG-300: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>

<?php // List All Of The Product Warranties On The Site ; ?>
<h2 class="pagesubsectionheader">Product Warranties</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'Warranty');
	$doclistwarranty = new WP_Query($args);

	if($doclistwarranty->have_posts()) : 
		while($doclistwarranty->have_posts()) : 
			$doclistwarranty->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">Warranty: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>

<?php // List All Of The General Documents On The Site ; ?>
<h2 class="pagesubsectionheader">General Documents</h2>
<ul>
<?php
	$args = array('post_type' => 'document', 'posts_per_page' => '-1', 'meta_key' => 'documenttype', 'meta_value' => 'General Document');
	$doclistgeneral = new WP_Query($args);

	if($doclistgeneral->have_posts()) : 
		while($doclistgeneral->have_posts()) : 
			$doclistgeneral->the_post(); 
   
?>

	<li><a href="<?php the_permalink(); ?>" target="_blank">Document: <?php the_title(); ?></a></li>

<?php endwhile ; ?>
<?php endif ; ?>
<?php wp_reset_query(); ?>
</ul>